<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: {method: :post, class: 'form-signin'}) do |f| %>
  <%= render "devise/shared/error_messages", resource: resource %>
  <div class="text-center mb-4">
    <h1 class="h3 mb-3 font-weight-normal">忘记密码了？</h1>
  </div>
  <!--  <div class="form-label-group">-->
  <%= f.label :email, "邮箱" %><br/>
  <%= f.email_field :email, autofocus: true, autocomplete: "email", required: true, class: 'form-control', placeholder: "邮箱" %>
  <!--  </div>-->
  <div class="mb-2"></div>
  <%= f.submit "发送重置密码邮件", class: 'btn btn-lg btn-primary btn-block' %>
<% end %>

<%= render "devise/shared/links" %>
